<?php
/**
 * Created by PhpStorm.
 * User: hedx
 * Date: 2016/3/30
 * Time: 17:35
 */

namespace common\mq\models;

/**
 * 消息属性
 *
 * Class MessageAttributes
 * @package common\mq\models
 */
class MessageAttributes
{
    private $priority; //消息优先级
    private $delaySeconds; //消息延时时间
    private $title; //消息标题
    private $batch; //消息批次
    private $type; //消息类型
    private $sender; //消息发送者
    private $receiver; //消息接收者
    private $content; //消息内容

    public function __construct($priority = NULL, $delaySeconds = NULL, $title = NULL,
                         $batch = NULL, $type = NULL, $sender = NULL, $receiver = NULL, $content = NULL)
    {
        $this->priority = $priority;
        $this->delaySeconds = $delaySeconds;
        $this->title = $title;
        $this->batch = $batch;
        $this->type = $type;
        $this->sender = $sender;
        $this->receiver = $receiver;
        $this->content = $content;
    }

    /**
     * @return mixed
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @param mixed $title
     * @return $this
     */
    public function setTitle($title)
    {
        $this->title = $title;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getSender()
    {
        return $this->sender;
    }

    /**
     * @param mixed $sender
     * @return $this
     */
    public function setSender($sender)
    {
        $this->sender = $sender;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getReceiver()
    {
        return $this->receiver;
    }

    /**
     * @param mixed $receiver
     * @return $this
     */
    public function setReceiver($receiver)
    {
        $this->receiver = $receiver;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @param mixed $content
     * @return $this
     */
    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getBatch()
    {
        return $this->batch;
    }

    /**
     * @param mixed $batch
     * @return $this
     */
    public function setBatch($batch)
    {
        $this->batch = $batch;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getPriority()
    {
        return $this->priority;
    }

    /**
     * @param mixed $priority
     * @return $this
     */
    public function setPriority($priority)
    {
        $this->priority = $priority;
        return $this;
    }

    /**
     * @return null
     */
    public function getDelaySeconds()
    {
        return $this->delaySeconds;
    }

    /**
     * @param null $delaySeconds
     * @return $this
     */
    public function setDelaySeconds($delaySeconds)
    {
        $this->delaySeconds = $delaySeconds;
        return $this;
    }

    /**
     * @return null
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param null $type
     * @return $this;
     */
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

}